/* ========================================================================== */
/*   USBC.cpp    		                                                      */
/*   (c) 2012 Team 7 Hogeschool Utrecht ICT TI                                */
/*		Lars Stolwijk, Gerben Boot, Guido van Hienen, Marcel Boelen			  */
/*                                                                            */
/*   Responsible for the connection and sending log information to the PC     */
/* ========================================================================== */
#include "USBC.h"

void USBC::Send(LogFile * theLogFile)
{
	std::cout << "\n=====Log=======\n";
	for(unsigned int i = 0; i < 50; i++)
	{
		if(theLogFile->array[i].time == 0)
		{
			break;
		}
		
		char min = theLogFile->array[i].time/60;
		char sec = theLogFile->array[i].time%60;
		std::cout << (i+1) << ". " << "Player: " << (short)theLogFile->array[i].player << " - Weapon: " << (short)theLogFile->array[i].weapon << " - Health: " << (short)theLogFile->array[i].health << " - " << "Time: " << (short)min << ":" << (short)sec << "\n";
		
		
	}
	std::cout << "===============\n\n";
}
